const { defineConfig } = require('@vue/cli-service')
module.exports = defineConfig({
    transpileDependencies: true,
    lintOnSave: true,
    devServer: {
        proxy: {
            '/api': {
                target: 'http://www.catpudding.cn:8081',
                pathRewrite: { '^/api': '' },
                ws: true,
                changeOrigin: true, //用于控制请求头中的host值
            },
        }
    }
})